import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.PrintWriter;
import java.net.Socket;
import java.util.Scanner;

import javax.swing.JOptionPane;


public class ThreatListener implements Runnable{

	public ThreatListener(Scanner i) {
		in=i;
	}
	
	
	
	public void run() {
		
		try{
		while(true&&in.hasNextLine()){
			line=in.nextLine();
			System.out.println("SERVER: "+line.trim());
			//if(line.equals("OK3 LOGED"))JOptionPane.showMessageDialog(null,"");
		
		
		}
		}catch (Exception e) {
			System.out.println("ex");
		}
		
	}

	
	
    String line;
	Scanner in;
}
